package io.github.biezhi.elves.service;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import io.github.biezhi.elves.credit.model.CompNameList;
import io.github.biezhi.elves.credit.model.CreditReport;

public interface CreditReportService {
	
	/**
	 * 查询未爬取的工商企业，即IS_SPIDER=0
	 * @return
	 */
	public List<CompNameList> queryCompNameList(Integer num);
	
	/**
	 * 根据compId更新爬取状态,0表示未爬取，1表示已爬取，2表示爬取异常
	 * @param compId
	 */
	void updateCompNameListState(@Param("compId") String compId,@Param("state") Integer state);

	/**
	 * 将爬取出来的数据存放到数据库表中
	 */
	public void insertCreditReport(CreditReport creditReport);
	


}
